home *** CD-ROM | disk | FTP | other *** search
/ Enter 2003 April / EnterCD 4_2003.iso / Multimedia / AlbumCreator 2.5 / AC2.exe / a1.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2002-11-25  |  818 b   |  29 lines

  1. Stage.scaleMode = "noScale";
  2. myListener = new Object();
  3. _root.Image._x = (750 - Stage.width) / 2;
  4. _root.Image._y = (500 - Stage.height) / 2;
  5. myListener.onResize = function()
  6. {
  7.    _root.Image._x = (750 - Stage.width) / 2;
  8.    _root.Image._y = (500 - Stage.height) / 2 + 20;
  9.    _root.FirmTools._x = (750 - Stage.width) / 2;
  10.    _root.FirmTools._y = (500 - Stage.height) / 2;
  11.    cash._y = 490 + (Stage.height - 500) / 2;
  12.    Description._y = 480 + (Stage.height - 500) / 2;
  13. };
  14. Stage.addListener(myListener);
  15. i = 0;
  16. while(i < images.length)
  17. {
  18.    if(i != 0)
  19.    {
  20.       duplicateMovieClip("t0","t" + i,16384 + i);
  21.    }
  22.    _root["t" + i].myinvisible = 1;
  23.    _root["t" + i].thm = images[i].thm;
  24.    _root["t" + i].src = images[i].src;
  25.    _root["t" + i].num = i;
  26.    _root["t" + i]._alpha = 0;
  27.    i++;
  28. }
  29.